<#include "../inc/_layout.html"/>
<@layout>
<div class="pageContent">
		<form method="post" action="${root!}/platform/save" id="articlefrom" class="pageForm required-validate"onsubmit="return validateCallback(this, dialogAjaxDone);">
			<div class="pageFormContent" id="articleSave" layoutH="55">
	<#list p as p1>
	<p>
		<label>${p1.pname}</label>
		<#if p1.type=='text'>
		<input type="text" name="${p1.key}" value="${p1.value!}">
		</#if>
		<#if (p1.type??&&p1.listValue??)&&(p1.type=="radio"||p1.type=="checkbox")>
			<#list p1.listValue.split(",") as v>
				<#assign kv=v.split(":")>
				<#if kv[1]??>
					<#assign vv=kv[0]>
					<#assign vt=kv[1]>
				<#else>
					<#assign vv=kv[0]>
					<#assign vt=kv[0]>
				</#if>
			<input type="${p1.type}" name="${p1.key}" value="${vv}" <#if vv=p1.value>checked="checked" </#if>>${vt}
			</#list>
		</#if>
		<#if (p1.type??&&p1.listValue??)&&(p1.type=="select")>
			<select name="${p1.key}">
				<#list p1.listValue.split(",") as v>
				<#assign kv=v.split(":")>
				<#if kv[1]??>
					<#assign vv=kv[0]>
					<#assign vt=kv[1]>
				<#else>
					<#assign vv=kv[0]>
					<#assign vt=kv[0]>
				</#if>
				<option value="${vv}" <#if vv=p1.value>selected="selected"</#if>>${vt}</option>
			</#list>
			</select>
		</#if>
	</p>
	</#list>
	</div>
			<div class="formBar">
				<ul>
					<li><div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">保存</button>
							</div>
						</div></li>
					<li>
						<div class="button">
							<div class="buttonContent">
								<button type="Button" class="close">关闭</button>
							</div>
						</div></li>
				</ul>
			</div>
		</form>
	</div>
</@layout>